package com.stone.bypass.proxy.core.utils;

import org.apache.commons.lang3.ArrayUtils;

/**
 * @Auther: stone
 * @Date: 2021/8/3 02:10
 * @Description:
 */
public class StringUtils {
  public static boolean isAllEmpty(final CharSequence... css) {
    if (ArrayUtils.isEmpty(css)) {
      return true;
    }
    for (final CharSequence cs : css) {
      if (isNotEmpty(cs)) {
        return false;
      }
    }
    return true;
  }

  public static boolean isNotEmpty(final CharSequence cs) {
    return !isEmpty(cs);
  }

  public static boolean isEmpty(final CharSequence cs) {
    return cs == null || cs.length() == 0;
  }
}
